﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;

namespace BackOffice
{
    public partial class Member_Sales_Report2 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                int orderid = Convert.ToInt32(Request.QueryString["orderID"]);
                DataTable dt = showSalesDetails(orderid);

                MemberSalesReport2_Grid.DataSource = dt;
                MemberSalesReport2_Grid.DataBind();
            }
        }

        public DataTable showSalesDetails(int orderid)
        {
            DataTable dt = new DataTable();

            dt = Report.showOrderDetails(orderid);

            return dt;
        }

    }
}